package com.jiyun.feign;

import com.jiyun.vo.ResultResopnse;
import com.jiyun.vo.TrainDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/24 17 07
 * */
@FeignClient(name = "day15Train",path = "/train")
public interface FeignTrain {
    @GetMapping("/findTrainTime")
    public ResultResopnse findTrainTime();
    @GetMapping("/findTrainCourse")
    public ResultResopnse findTrainCourse();
    @GetMapping("/findTrainQuiz")
    public ResultResopnse findTrainQuiz();
    @GetMapping("/findTime")
    public ResultResopnse findTime();
    @PostMapping("/showTrain")
    public ResultResopnse showTrain(@RequestBody TrainDto trainDto);
    @GetMapping("/showTrainCourse")
    public ResultResopnse showTrainCourse();
    @GetMapping("/showTrainQuiz")
    public ResultResopnse showTrainQuiz();
    @GetMapping("/findTrainId")
    public ResultResopnse findTrainId(@RequestParam("id")Integer id);
    @GetMapping("/findTrainConsumer")
    public ResultResopnse findTrainConsumer(@RequestParam("id")Integer id);
    @GetMapping("/joinTrain")
    public ResultResopnse joinTrain(@RequestParam("id")Integer id);
    @GetMapping("/findTrainCourseNum")
    public ResultResopnse findTrainCourseNum(@RequestParam("id")Integer id);
    @GetMapping("/findTrainQuizNum")
    public ResultResopnse findTrainQuizNum(@RequestParam("id")Integer id);
    @GetMapping("/findTrainQuizPaper")
    public ResultResopnse findTrainQuizPaper(@RequestParam("id")Integer id);
}
